.class Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;
.super Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingAwareWebView;
.source "ContentLoaderWebView.java"

# interfaces
.implements Lcom/burstly/lib/component/networkcomponent/IActivityLifeCycleAware;


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0xb
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$1;,
        Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$WebClient;,
        Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$ChromeClient;,
        Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$IWebContentLoadedListener;
    }
.end annotation


# instance fields
.field volatile mCancelled:Z

.field private mChromeClient:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$ChromeClient;

.field mContentLoaderListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$IWebContentLoadedListener;

.field private mWebClient:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$WebClient;


# direct methods
.method constructor <init>(Landroid/content/Context;)V
    .locals 3
    .parameter "context"

    .prologue
    const/4 v2, 0x0

    .line 150
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingAwareWebView;-><init>(Landroid/content/Context;)V

    .line 151
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 152
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$ChromeClient;

    invoke-direct {v0, p0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$ChromeClient;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$1;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->mChromeClient:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$ChromeClient;

    .line 153
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->mChromeClient:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$ChromeClient;

    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V

    .line 154
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$WebClient;

    invoke-direct {v0, p0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$WebClient;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$1;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->mWebClient:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$WebClient;

    .line 155
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->mWebClient:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$WebClient;

    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 156
    return-void
.end method


# virtual methods
.method cancelLoading()V
    .locals 1

    .prologue
    .line 169
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->mCancelled:Z

    .line 170
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->mWebClient:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$WebClient;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$WebClient;->cancel()V

    .line 171
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->destroy()V

    .line 172
    return-void
.end method

.method isCancelled()Z
    .locals 1

    .prologue
    .line 206
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->mCancelled:Z

    return v0
.end method

.method public onDestroy(Landroid/app/Activity;)V
    .locals 0
    .parameter "curerntActivity"

    .prologue
    .line 176
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->destroy()V

    .line 177
    return-void
.end method

.method public onKey(Landroid/app/Activity;ILandroid/view/KeyEvent;)Z
    .locals 1
    .parameter "activity"
    .parameter "keyCode"
    .parameter "event"

    .prologue
    .line 188
    const/4 v0, 0x0

    return v0
.end method

.method public onPause(Landroid/app/Activity;)V
    .locals 2
    .parameter "curerntActivity"

    .prologue
    .line 160
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0xa

    if-le v0, v1, :cond_0

    .line 161
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->onPause()V

    .line 163
    :cond_0
    return-void
.end method

.method public onResume(Landroid/app/Activity;)V
    .locals 2
    .parameter "curerntActivity"

    .prologue
    .line 181
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0xa

    if-le v0, v1, :cond_0

    .line 182
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->onResume()V

    .line 184
    :cond_0
    return-void
.end method

.method setContentLoaderListener(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$IWebContentLoadedListener;)V
    .locals 0
    .parameter "contentLoaderListener"

    .prologue
    .line 197
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->mContentLoaderListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$IWebContentLoadedListener;

    .line 198
    return-void
.end method
